exports.success = (title)=>{
    return new Promise((resolve, reject)=>{
        wx.showToast({
            title: title,
            icon: 'success',
            duration: 1500,
            success: ()=>{
                resolve();
            }
        })
    })
};

exports.show = (title) => {
  return new Promise((resolve, reject) => {
    wx.showToast({
      title: title,
      icon: 'none',
    });
  })
};

exports.showLoading = function () {
  wx.showToast({
    title: "",
    icon: "loading",
    duration: 10000,
    mask: true
  });
}

exports.hideLoading = function () {
  wx.hideToast();
}